<div class="row">
  <div class="col-md-12">
    <table class="table table-striped table-bordered table-hover"> 
      <thead> 
        <tr>
          <th width="35">N&deg;</th> 
          <th>Name</th>
          <th>Category</th>
          <th>Description</th>
          <th>Active</th>
          <th width="110">Actions</th>
        </tr> 
      </thead> 
      <tbody> 
        <?php
        if($data->num_rows() > 0){
          $PageNumber = (uri(4) > 0) ? uri(4) : 0;
          $i = $PageNumber;
          foreach ($data->result_array() as $row) {
            $i++;
            ?>
            <tr> 
              <td><?php echo $i;?></td>
              <td><?php echo $row[field('name')]; ?></td>
              <td><?php echo $row[field('category')]; ?></td>
              <td><?php echo $row[field('description')]; ?></td>
              <td><i class="icon icon-<?php echo $row[field('isDisable')] == 1 ? 'remove red' : 'ok';?>"></i></td>
              <td align="center">
                <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                  <?php echo anchor(module_controller('edit/'.$row[field('id')]),'<i class="icon-pencil bigger-130 green"></i>'); ?>
                  <a class="dialog-delete" href="<?php echo site_url(module_controller('delete/'.$row[field('id')])); ?>" msg="Are you sure to delete this item?"><i class="icon-trash bigger-130 red"></i></a>
                </div>
              </td>
            </tr> 
            <?php
          }
        }else{
        ?>
        <tr>
          <td colspan="6">No data display!</td>
        </tr>
        <?php } ?>
      </tbody> 
    </table>
    <div><?php echo $this->pagination->create_links(); ?></div>
  </div>
</div>